package com.yunfei.yikao.web.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author: yunfei
 * @Date: 8:03
 */
@Documented
@Constraint(validatedBy = EmailCodeValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EmailCode {
String message() default "验证码验证失败";
Class<?> []groups() default {};
Class<? extends Payload> [] payload() default {};
}
